package cn.da.shuai.cool.system.model.entity.dept;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统部门用户关系表
 * </p>
 *
 * @author 大帅哥
 * @since 2025-01-03
 */
@Getter
@Setter
@TableName("cool_dept_user")
@Schema(name = "CoolDeptUser", description = "系统部门用户关系表")
public class CoolDeptUser implements Serializable {

    @Schema(description = "部门id")
    @TableField("dept_id")
    private Integer deptId;

    @Schema(description = "用户id")
    @TableField("user_id")
    private Integer userId;

    @Schema(description = "部门ID层级树")
    @TableField("dept_tree")
    private String deptTree;

    @Schema(description = "是否主部门")
    @TableField("is_main")
    private Integer isMain;

    @Schema(description = "创建时间")
    @TableField("create_time")
    protected LocalDateTime createTime;

    @Schema(description = "创建用户id")
    @TableField("create_By")
    protected Integer createBy;

}